package com.gljx.web.service.impl;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.gljx.web.Entity.JournalEntry.lCarRefuelingJournal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.gljx.web.Entity.FillingWareRegEntry;
import com.gljx.web.dao.FillingWareRegEntryMapper;
import com.gljx.web.service.FillingWareRegEntryService;

@Service
@Transactional
public class FillingWareRegEntryServiceImpl implements FillingWareRegEntryService {

	@Autowired
	private FillingWareRegEntryMapper fillingWareRegEntryMapper;
	
	/**
	 * 根据时间查询记录
	 */
	@Override
	public Double selFillingWareBeginBalance(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return fillingWareRegEntryMapper.selFillingWareBeginBalance(map);
	}

	@Override
	public List<FillingWareRegEntry> selFillingWareRegEntry(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return fillingWareRegEntryMapper.selFillingWareRegEntry(map);
	}

	@Override
	public Double selFillingWareBeginBalances(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return fillingWareRegEntryMapper.selFillingWareBeginBalances(map);
	}

	@Override
	public List<FillingWareRegEntry> selFillingWareRegEntryByParentid(String fid, String object) {
		// TODO Auto-generated method stub
		return fillingWareRegEntryMapper.selFillingWareRegEntryByParentid(fid, object);
	}

	@Override
	public int deleteFillingWareRegEntryByParentid(String parentid) {
		// TODO Auto-generated method stub
		return fillingWareRegEntryMapper.deleteByParentId(parentid);
	}

    /**
     * @Author lcx
     * @Date 2017/12/18 0018 下午 4:29
     * 查询单价
     */
    @Override
    public Double selFillingWarePrice(Map map) {
        return fillingWareRegEntryMapper.selFillingWarePrice(map);
    }

    @Override
    public Double selFillingWarePrices(Map map) {
        return fillingWareRegEntryMapper.selFillingWarePrices(map);
    }
}
